<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Intraday Sector Data</title>
<link href="<c:url value="/resources/css/jquery.datetimepicker.css" />"
	rel="stylesheet" type="text/css"></link>
<link href="<c:url value="/resources/css/common.css" />"
	rel="stylesheet" type="text/css">
<script type="text/javascript"
	src="<c:url value="/resources/js/jquery-1.11.0.min.js" />"></script>
<script type="text/javascript"
	src="<c:url value="/resources/js/jquery.datetimepicker.js" />"></script>
<script type="text/javascript"
	src="<c:url value="/resources/js/bootstrap.js " />"></script>

<link href="<c:url value="/resources/css/bootstrap.min.css " />"
	rel="stylesheet" type="text/css" />
<link href="<c:url value="/resources/css/style.css" />" rel="stylesheet"
	type="text/css" />
	<link href="<c:url value="/resources/css/backend/style.css" />" rel="stylesheet"
	type="text/css" /></link>
<script type="text/javascript">
	$(document).ready(function() {
		$("#datepicker").datetimepicker({
			format : 'Y-m-d H:i'
		});
	});
</script>
</head>
<body>
	<div class="main_wrapper">
		<div class="header_wrapper">
			<div class="container-fluid">
				<div class="header_inner_wrapper clearfix">
					<div class="row-fluid">
						<div class="header_left span4">Intraday Sector Data Setup</div>
					</div>
				</div>
				<div class="content_wrapper">
					<div class="container-fluid">
						<div class="row-fluid">
							<div class="input_box_wrapper">
								<div class="input_box_wrapper_text_aery">
									<div class="span6">
										<form:form method="POST" commandName="intradaysectordata"
											action="${pageContext.request.contextPath}/admin/intradaysectordata/add/process.html"
											class="form-horizontal" >
											<div>${message}</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Sector
													:</label>
												<div class="controls">
													<form:select itemValue="id" itemLabel="name"
														path="sector.id" items="${sectorMap}">
													</form:select>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Time :</label>
												<div class="controls">
													<form:input path="dateTime" id="datepicker" />
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Value
													:</label>
												<div class="controls">
													<form:input path="value" />
												</div>
												<div class="controls">
													<form:errors path="value" cssClass="error"></form:errors>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Value
													Change :</label>
												<div class="controls">
													<form:input path="valueChange" />
												</div>
												<div class="controls">
													<form:errors path="valueChange" cssClass="error"></form:errors>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Percentage
													Change :</label>
												<div class="controls">
													<form:input path="percentageChange" />
												</div>
												<div class="controls">
													<form:errors path="percentageChange" cssClass="error"></form:errors>
												</div>
											</div>
											<div class="control-group">
												<label class="control-label" for="inputEmail">Sequence
													:</label>
												<div class="controls">
													<form:input path="sequence" />
												</div>
												<div class="controls">
													<form:errors path="sequence" cssClass="error"></form:errors>
												</div>
											</div>
											<input class="btn btn-inverse save" type="submit"
												value="Save" />
										</form:form>
										<div class="btn btn-info">
											<a href="${pageContext.request.contextPath}/index.html">Home
												page</a>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>